
type Props = {children:any, history?:any}

export default function Searchbox({children,history}: Props) {
    const goPush = (key:string, last:string)=>{
        history.push({pathname:key},{last:last})
    }
  return children(goPush)
}
